#include <iostream>
#include "second_header.h"
using std::cout;
using std::endl;
/*
16、Create a header file containing a namespace. 
Inside the namespace create several function declarations. 

Now create a second header file that includes the first one and continues the namespace, 
adding several more function declarations. 

Now create a cpp file that includes the second header file. 
Alias your namespace to another (shorter) name. 
Inside a function definition, call one of your functions using scope resolution. 

Inside a separate function definition, write a using directive to introduce your namespace into that function scope, 
and show that you don’t need scope resolution to call the functions from your namespace.
*/
namespace fs = func_space;


void fs::func1(){
    cout << "one of functions in namespace is called by using scope resolution." << endl;
}

void function(){
    using namespace fs;
    func1();
    cout << "one of functions in namespace is called without using scope resolution." << endl;
}

int main()
{
    function();
    return 0;
}